Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AI powered Social Media Manager agent #27

Closed

Conversation

shahshrey
Copy link

@shahshrey shahshrey commented Nov 17, 2024

Add Social Media Manager Agent with LangGraph Implementation

Overview

This PR adds a new Social Media Manager agent that leverages LangGraph for automated content sourcing and LinkedIn post creation. The agent supports multiple content sources and implements a sophisticated state-based workflow.

Key Features

  • Multi-source content processing (YouTube, Reddit, Towards Data Science, LinkedIn, Audio)
  • LangGraph StateGraph implementation for workflow management
  • LinkedIn integration with browser automation using Playwright
  • Error handling and checkpoint management
  • Customizable post generation with consistent styling

Implementation Details

  • Uses LangGraph's StateGraph to orchestrate the content pipeline
  • Implements content routing based on user intent
  • Handles multiple content sources with dedicated processing nodes
  • Includes automated LinkedIn posting capabilities
  • Maintains state throughout the process with MemorySaver

Files Changed

  • README.md: Added documentation for the Social Media Manager agent
  • all_agents_tutorials/Social_Media_manager_langgraph.ipynb: New implementation file

Testing

The agent has been tested with:

  • Content fetching from multiple sources
  • Post generation with consistent formatting
  • LinkedIn integration (requires credentials)
  • Error handling and recovery
  • State management persistence

Dependencies

New dependencies required:

  • beautifulsoup4
  • langchain_groq
  • playwright
  • praw
  • youtube_transcript_api
  • whisper
  • Additional LinkedIn-specific packages

Usage

Users can:

  1. Configure content sources and credentials
  2. Select content type (YouTube, Reddit, TDS, etc.)
  3. Generate LinkedIn-style posts
  4. Optionally publish directly to LinkedIn

Documentation

Full documentation and usage examples are included in the notebook with:

  • Setup instructions
  • API configuration steps
  • Usage examples for each content source
  • LinkedIn integration guide

Future Improvements

  • Add support for more social media platforms
  • Add support to get any content using search
  • Enhance content analysis capabilities
  • Implement batch processing
  • Add more customization options for post styling

@shahshrey shahshrey marked this pull request as ready for review November 17, 2024 21:58
@shahshrey shahshrey changed the title feat: add social media agent Add AI powered Social Media Manager agent Nov 17, 2024
@NirDiamant
Copy link
Owner

Hi Shrey!
can you please:

  1. add an image representing your logical flow as described in the CONTRIBUTING.MD file
  2. Remove the changes you made to the README.md

@NirDiamant
Copy link
Owner

in addition, please re-organize the code. the cells are too long, and the functions are very hard to read

@shahshrey shahshrey closed this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants